import {WeaTools} from 'ecCom'

export const getDetailView = params => {   //得到报告每条计划明细详情
    return WeaTools.callApi('/api/workrelate/plan/getDetailView', 'GET', params);
}
export const saveDetailView = params => {   //保存报告每条计划明细详情
    return WeaTools.callApi('/api/workrelate/plan/saveDetailView', 'POST', params);
}    
export const getPlanDetail = params => {//获取报告详情
    return WeaTools.callApi('/api/workrelate/plan/getPlanDetail', 'GET', params);
}
export const saveOrSubmitPlan = params => {//报告保存 提交操作
    return WeaTools.callApi('/api/workrelate/plan/saveOrSubmitPlan', 'POST', params);
}
export const addPlanExchange = params => {//添加意见反馈
    return WeaTools.callApi('/api/workrelate/plan/addPlanExchange', 'POST', params);
}
export const setPlanShare = params => {//设置报告共享
    return WeaTools.callApi('/api/workrelate/plan/setPlanShare', 'GET', params);
}
export const auditPlan = params => {//批准及退回
    return WeaTools.callApi('/api/workrelate/plan/auditPlan', 'GET', params);
}
export const deletePlan = params => {//删除报告
    return WeaTools.callApi('/api/workrelate/plan/deletePlan', 'GET', params);
}
export const resetPlan = params => {//重新编写报告
    return WeaTools.callApi('/api/workrelate/plan/resetPlan', 'GET', params);
}
export const getWeek = params => {//得到每年所有周
    return WeaTools.callApi('/api/workrelate/plan/getWeek', 'GET', params);
}
export const getEntryYear = params => {//得到入职年份
    return WeaTools.callApi('/api/workrelate/common/getEntryYear', 'GET', params);
}
export const getPlanLog = params => {//获取报告操作日志
    return WeaTools.callApi('/api/workrelate/plan/getPlanLog', 'GET', params);
}
export const addTask = params => {//创建任务
    return WeaTools.callApi('/api/workrelate/task/addTask', 'POST', params);
}
export const viewDocFiled = params => {   //给相关附件权限
    return WeaTools.callApi('/api/workrelate/common/viewDocFiled', 'POST', params);
}